﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Vehicle
{
    public class CarAuto:Vehicle
    {
        private string aircondition;
        private string cd;
        public void accelarate(double value)
        {
            Console.WriteLine("汽车加速");
            this.speed += value;
        }
        public void deaccelarate(double value)
        {
            Console.WriteLine("汽车减速");
            this.speed -= value;
        }
        public void printSpeed()
        {
            Console.WriteLine(speed);
        }
    }
}
